<template>
	<view class="container">
		<view class="tip">提示：下面填写的信息会在视频中体现，大数据匹配更准确!认真填写会大大提高生成的视频获得更好的本地流量</view>
		<view class="content">
			<view class="item">
				<view class="label">门店类型</view>
				<input class="input-val" v-model="form.mendianleixing" placeholder-style="color:#dedede" placeholder="例如: 火锅店"/>
			</view>
			<view class="item">
				<view class="label">奖品名称</view>
				<input class="input-val" v-model="form.jiangpinmingcheng" placeholder-style="color:#dedede" placeholder="例如: 酸梅汤一壶"/>
			</view>
		</view>
		
		
		<view class="makewenan-btn" @click="makeWenan">生成爆款文案</view>
	</view>
</template>

<script>
import Http from '../utils/http';
const http = new Http()
	export default {
		data() {
			return {
				form:{
					id:null,
					mendianleixing:"",
					jiangpinmingcheng:""
				}
			}
		},
		onLoad() {
			http.get("v1/gif/getGuanjianci").then(res=>{
				if(res.data.data){
					this.form =res.data.data
				}
				
			})
		},
		methods: {
			makeWenan(){
				let form = this.form
				console.log("===>",form);
				http.post("v1/gif/operateGuanjianci",this.form).then(res=>{
					console.log("res===>",res)
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	page{
		background: #f1f1f1;
	}
	.tip{
		color: red;
		font-size: 28rpx;
		margin: 30rpx 30rpx 0 30rpx;
	}
.content{
	background: #fff;
	margin: 30rpx;
	.item{
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 100rpx;
		padding: 0 20rpx;
		border-bottom: 1rpx solid #f1f1f1;
		font-size: 32rpx;
		.label{
			width: 150rpx;
		}
		.input-val{
			flex: 1;
			text-align: right;
		}
	}
}
.makewenan-btn{
	position: fixed;
	bottom: 10rpx;
	height: 90rpx;
	line-height: 90rpx;
	left: 2%;
	width: 96%;
	text-align: center;
	color: #fff;
	background: #00008B;
	font-size: 32rpx;
	border-radius: 45rpx;
	
}
</style>
